package com.atgui.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;
    @GetMapping(value = "/get/payment/consul")
    public String getPayment(){

        return new String("服务端口："+serverPort+"-uuid:"+ UUID.randomUUID());
    }
}
